package net.xdclass.xdclass.mapper;

import net.xdclass.xdclass.model.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    User findByPhone(@Param("phone") String phone);
    int save(User user);

    User findByPhoneAndPwd(@Param("phone")String phone,
                           @Param("pwd")String pwd);

    User findByUserId(@Param("userId") Integer userId);

}
